package com.azthink.chapter511;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping(value = "/api/hello")
public class HelloController {
    //http://localhost:8080/api/hello/say
    @GetMapping("/say")
    public String say(){
       return "Hello, World!";
    }
}
